/**
 * 工单回复API
 *
 * @Date 2021/4/7 23:03
 * @author 周世焕
 */
import axios from "@/libs/api.request";

/**
 * 保存工单回复
 */
export function saveReply(data) {
    return  axios.request({
        url: '/v1/ticket/reply',
        data: data,
        method: 'post'
    })
}

/**
 * 保存工单最终回复
 */
export function saveFinalReply(ticketId,reply) {
    return  axios.request({
        url: '/v1/ticket/reply/final',
        params: {ticketId,reply},
        method: 'post'
    })
}


/**
 * 获取回复
 */
export function findReplyList(ticketId) {
    return  axios.request({
        url: '/v1/ticket/reply/list',
        params: {ticketId},
        method: 'get'
    })
}

/**
 * 删除回复
 */
export function deleteReply(ticketId) {
    return  axios.request({
        url: '/v1/ticket/reply',
        params: {ticketId},
        method: 'delete'
    })
}
